#!/usr/bin/env python
# -*- coding: UTF-8 -*-
"""
@file path_utils.py
@author weiximei
@date 2025/2/28 14:37
"""
import os


def getProjectRootPath() -> str:
    """
    获取项目根目录
    :return:
    """
    current_path = os.path.abspath(os.path.dirname(__file__))
    print(current_path)
    print(os.path.dirname(current_path))
    print(os.path.dirname(os.path.dirname(current_path)))
    return os.path.dirname(os.path.dirname(current_path))


def getResourcesPath() -> str:
    """
    获取项目资源目录
    :return:
    """
    return os.path.join(getProjectRootPath(), "resources")


def getOtherPath(path: str) -> str:
    """
    获取项目其他目录
    :return:
    """
    return os.path.join(getProjectRootPath(), path)
